<ion-view view-title="整车详情" cache-view="true" hide-back-button="false" ng-init="init()">
  <ion-nav-buttons side="right">
    <button class="button" ng-click="toShare()">分享</button>
  </ion-nav-buttons>
  <ion-content>
    <section class="g_main">
      <!-- 个人信息 -->
      <section class="my_info my_truck_info">
        <img ng-src="{{vinchelInfo.member_photo}}" alt="">
        <div class="user_info">
          <div class="name"><strong>{{vinchelInfo.owner_name}}</strong>
            <span style="color: red;font-size:10px;display:none" ng-show="vinchelInfo.auth_state<2">&nbsp;(未实名认证)</span>
            <div style="height:44px;line-height: 41px;display: inline-block;">
              <div class="ivu-rate"><input type="hidden" value="2.5">
                <div class="ivu-rate-star {{vinchelInfo.score>0?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{vinchelInfo.score>1?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{vinchelInfo.score>2?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{vinchelInfo.score>3?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{vinchelInfo.score>4?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
              </div>
            </div>

          </div>
          <div class="company">
          <!--
          <i class="icon icon_tag_qi">企业认证</i>-->
          <i class="icon icon_tag_shi" ng-show="vinchelInfo.auth_state==2" style="display:none">实名认证</i>
          <i class="icon icon_tag_che">有车</i><!--i class="icon icon_tag_piao">发票</i> <em>上海环贸物流有限公司</em-->
            <span style="position: relative;padding-right: 80px;margin-top: 10px;margin-bottom: 10px;font-size: 13px;color: #999;background-color: #fff;">已完成订单数：{{vinchelCountInfo.order_count}},评价数：{{vinchelCountInfo.score_count}}</span>
          </div>
          <p class="truck_number">{{vinchelInfo.vehicle_no}}</p>

        </div>
        <div class="contact_info">
          <a href="tel: {{vinchelInfo.phone}}" style="width: 33%"><i class="icon icon_tel"></i>电话联系</a>
          <a ng-click="openchat({{'vinchelInfo.owner_id'}}, {{'vinchelInfo.owner_name'}}, {{'vinchelInfo.member_photo'}})"  style="width: 33%"><i class="icon icon_message"></i>在线联系</a>
           <a ng-click="queryComment({{'vinchelInfo.owner_id'}}, {{'vinchelInfo.owner_name'}}, {{'vinchelInfo.member_photo'}})"  style="width: 33%"><i class="icon icon_path"></i>查看评价</a>
        </div>
      </section>
      <!-- 个人信息操作面板 -->
      <section class="my_truck_info_list">
        <ul>
          <li><span>注册日期</span><em>{{vinchelInfo.create_time.substring(0,10)}}</em></li>
          <li><span>车型</span><em>{{vinchelTypes[vinchelInfo.vehicle_type]}}</em></li>
          <li><span>车长</span><em>{{vehiclelens[vinchelInfo.vehicle_len]}}</em></li>
          <li><span>吨位</span><em>{{vinchelInfo.vehicle_load_disp}}</em></li>
          <li><span>常用线路</span><em>{{vinchelInfo.frequent_line_start}}--{{vinchelInfo.frequent_line_end}}</em></li>
        </ul>
      </section>
    </section>
  </ion-content>
</ion-view>
